package top.javarem.medical.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AnswerSubmitDTO {

    private Integer categoryId;
    
    // 答题结果列表
    private List<QuestionAnswer> answers;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class QuestionAnswer {
        // 题目ID
        private Long id;
        
        // 用户选择的答案
        private String userAnswer;

        private Integer difficulty;
    }
}